

*** treatment conditions used in this article are named D2 (treatment 11), D5(treatment 14), D6(treatment 15) and D7(treatment 16)
*** D2 is 20kUS/100k IRANIAN DEAD,  D5 is 20kUS/2million IRANIAN DEAD, D6 is CONVENTIONAL and D7 is the AYATOLLAH DEAL

*** GENERAL VARIABLE CREATION (FYI, main DV is named "fixed" because original scale was accidentally reversed by YouGov)
*** ALL VARIABLES ALREADY GENERATED IN REPLICATION DATASET
gen FIXED_prefer_strike_D1_6_dummy = prefer_strike_D1_6
recode FIXED_prefer_strike_D1_6_dummy 6=0 5=0 4=0 3=1 2=1 1=1
gen approve_strike_D1_6_dummy = approve_strike_D1_6
recode approve_strike_D1_6_dummy 6=1 5=1 4=1 3=0 2=0 1=0
gen strike_ethical_D1_6_dummy = strike_ethical
recode strike_ethical_D1_6_dummy 6=1 5=1 4=1 3=0 2=0 1=0
gen FIXED_prefer_ground_D1_D6_dummy =.
replace FIXED_prefer_ground_D1_D6_dummy=1 if FIXED_prefer_strike_D1_6_dummy==0
replace FIXED_prefer_ground_D1_D6_dummy=0 if FIXED_prefer_strike_D1_6_dummy==1
gen prefer_strikeD7 = prefer_3choice
recode prefer_strikeD7 1=1 2=1 else=0
gen prefer_strikeD7 = prefer_3choice
recode prefer_strikeD7 1=1 2=1 else=0
gen prefer_groundD7 = prefer_3choice
recode prefer_groundD7 3=1 4=1 else=0
gen prefer_dealD7 = prefer_3choice
recode prefer_dealD7 5=1 6=1 else=0
gen bombing_effective_dummy = bombing_effective
recode bombing_effective_dummy 1=1 2=1 3=0 4=0
gen set_precedent_dummy = set_precedent
recode set_precedent_dummy 1=0 2=0 3=0 4=1 5=1 6=1
gen deal_credibility_dummy = deal_credibility
recode deal_credibility_dummy 1=0 2=0 3=0 4=1 5=1 6=1
gen deal_effective_dummy = deal_effective
recode deal_effective_dummy 1=1 2=1 3=0 4=0
gen republican_wleaners = pid7
recode republican_wleaners 7=1 6=1 5=1 8=. else=0
gen male = gender
recode male 2=0 
gen college_grad = edu
recode college_grad 5=1 6=1 else=0
gen ageolder60=1 if age>59
recode ageolder60 .=0
gen favor_DP_dummy = death_penalty
recode favor_DP_dummy 1=1 2=1 3=0 4=0 
gen white = 0
replace white=1 if race==1
gen Iran_responsible_dummy = Iran_responsible
recode Iran_responsible_dummy 6=1 5=1 4=1 3=0 2=0 1=0
gen civilians_responsible_dummy = civilians_responsible
recode civilians_responsible_dummy 6=1 5=1 4=1 3=0 2=0 1=0
gen d2_vs_d5 = .
replace d2_vs_d5 = 1 if treatment==11
replace d2_vs_d5 = 0 if treatment==14

*** TABLE 1
svyset [pweight= weight_pooled]
svy: tab japan_atomic

*** FIGURE 1 MAIN RESULTS
mean  FIXED_prefer_strike_D1_6_dummy, over(treatment), [pweight= expweight] if (treatment==11 | treatment==14 | treatment==15)
test [ FIXED_prefer_strike_D1_6_dummy ]_subpop_1= [ FIXED_prefer_strike_D1_6_dummy ]_subpop_3
mean  approve_strike_D1_6_dummy, over( treatment), [pweight= expweight] if (treatment==11 | treatment==14 | treatment==15)
mean FIXED_prefer_strike_D1_6_dummy approve_strike_D1_6_dummy [pweight= expweight] if treatment==14
test FIXED_prefer_strike_D1_6_dummy = approve_strike_D1_6_dummy

*** DIFFERENCE OF MEANS TEST OF DIFFERENCES IN BELIEFS THAT STRIKE WAS EFFECTIVE
mean  bombing_effective_dummy, over(treatment), [pweight= expweight] if (treatment ==11 | treatment==14 | treatment==15)
test [ bombing_effective_dummy ]_subpop_1= [ bombing_effective_dummy ]_subpop_2
test [ bombing_effective_dummy ]_subpop_1= [ bombing_effective_dummy ]_subpop_3
test [ bombing_effective_dummy ]_subpop_2= [ bombing_effective_dummy ]_subpop_3

*** TEST OF DIFFENCES IN ETHICAL JUDGEMENT OF STRIKE AMONG SUBJECTS WHO OPPOSED STRIKE
mean  strike_ethical_D1_6_dummy, over( treatment), [pweight= expweight] if  (treatment==11 | treatment==14 | treatment ==15)& FIXED_prefer_strike_D1_6_dummy==0
test [ strike_ethical_D1_6_dummy ]_subpop_1 = [ strike_ethical_D1_6_dummy ]_subpop_3

*** TEST OF DIFFENCES IN WHETHER STRIKE WOULD SET A PRECEDENT AMONG SUBJECTS WHO OPPOSED STRIKE
mean  set_precedent_dummy, over( treatment), [pweight= expweight] if  (treatment==11 | treatment==14 | treatment ==15) & FIXED_prefer_strike_D1_6_dummy==0
. test [ set_precedent_dummy ]_subpop_1 = [ set_precedent_dummy ]_subpop_2
. test [ set_precedent_dummy ]_subpop_1 = [ set_precedent_dummy ]_subpop_3
. test [ set_precedent_dummy ]_subpop_2 = [ set_precedent_dummy ]_subpop_3

*** FIGURE 2 DEMOGRAPHICS
mean  FIXED_prefer_strike_D1_6_dummy, over( republican_wleaners ), [pweight= expweight] if treatment==11 | treatment==14 | treatment==15
test [FIXED_prefer_strike_D1_6_dummy]0 = [FIXED_prefer_strike_D1_6_dummy]1
mean  FIXED_prefer_strike_D1_6_dummy, over( male ), [pweight= expweight] if treatment==11 | treatment==14 | treatment==15
test [FIXED_prefer_strike_D1_6_dummy]0 = [FIXED_prefer_strike_D1_6_dummy]1
mean  FIXED_prefer_strike_D1_6_dummy, over( ageolder60 ), [pweight= expweight] if treatment==11 | treatment==14 | treatment==15
test [FIXED_prefer_strike_D1_6_dummy]0 = [FIXED_prefer_strike_D1_6_dummy]1
mean  FIXED_prefer_strike_D1_6_dummy, over( college_grad ), [pweight= expweight] if treatment==11 | treatment==14 | treatment==15
test [FIXED_prefer_strike_D1_6_dummy]0 = [FIXED_prefer_strike_D1_6_dummy]1
mean  FIXED_prefer_strike_D1_6_dummy, over( favor_DP_dummy ), [pweight= expweight] if treatment==11 | treatment==14 | treatment==15
test [FIXED_prefer_strike_D1_6_dummy]0 = [FIXED_prefer_strike_D1_6_dummy]1
mean  FIXED_prefer_strike_D1_6_dummy, over( white ), [pweight= expweight] if treatment==11 | treatment==14 | treatment==15
test [FIXED_prefer_strike_D1_6_dummy]0 = [FIXED_prefer_strike_D1_6_dummy]1

***REGRESSION WITH DEMOGRAPHICS
logit FIXED_prefer_strike_D1_6_dummy male republican_wleaners college_grad ageolder60 white favor_DP_dummy [pweight=weight] if (treatment==11 | treatment==14 | treatment==15), robust

*** PROPORTION OF SUBJECTS WHO SUPPORT THE STRIKE WHO BLAME IRANIAN LEADERS
mean Iran_responsible_dummy [pweight= expweight] if (treatment ==11 | treatment==14 | treatment==15) & FIXED_prefer_strike_D1_6_dummy==1

*** PROPORTION OF SUBJECTS WHO SUPPORT THE STRIKE WHO BLAME IRANIAN CIVILIANS
mean civilians_responsible_dummy [pweight= expweight] if (treatment ==11 | treatment==14 | treatment==15) & FIXED_prefer_strike_D1_6_dummy==1

*** DIFFERENCE OF MEANS FOR PROPORTION OF SUBJECTS BLAME IRANIAN LEADERS AND CIVILIANS BY SUPPORT FOR AIRSTRIKE
mean Iran_responsible_dummy, over( FIXED_prefer_strike_D1_6_dummy ), [pweight= expweight] if (treatment ==11 | treatment==14 | treatment==15)
test [Iran_responsible_dummy]0 = [Iran_responsible_dummy]1
mean civilians_responsible_dummy , over( FIXED_prefer_strike_D1_6_dummy ), [pweight= expweight] if (treatment ==11 | treatment==14 | treatment==15)
test [ civilians_responsible_dummy ]0 = [ civilians_responsible_dummy ]1

*** IRAN FEELING THERMOMETER MEANS AND INTERACTION WITH TREATMENT
mean  Iran_feeling, over (FIXED_prefer_strike_D1_6_dummy), [pweight= expweight]
test [Iran_feeling]1 = [Iran_feeling]0
gen prefstrike_X_d2_vs_d5 = FIXED_prefer_strike_D1_6_dummy * d2_vs_d5
reg Iran_feeling prefstrike_X_d2_vs_d5 d2_vs_d5 FIXED_prefer_strike_D1_6_dummy [pweight= expweight]

**** FIGURE 3 GENDER
mean  FIXED_prefer_strike_D1_6_dummy, over( treatment male), [pweight= expweight] if (treatment==11 | treatment==14 | treatment ==15)
test [ FIXED_prefer_strike_D1_6_dummy ]_subpop_6= [ FIXED_prefer_strike_D1_6_dummy ]_subpop_1
test [ FIXED_prefer_strike_D1_6_dummy ]_subpop_6= [ FIXED_prefer_strike_D1_6_dummy ]_subpop_2
test [ FIXED_prefer_strike_D1_6_dummy ]_subpop_6= [ FIXED_prefer_strike_D1_6_dummy ]_subpop_3
test [ FIXED_prefer_strike_D1_6_dummy ]_subpop_6= [ FIXED_prefer_strike_D1_6_dummy ]_subpop_4
test [ FIXED_prefer_strike_D1_6_dummy ]_subpop_6= [ FIXED_prefer_strike_D1_6_dummy ]_subpop_5
test [ FIXED_prefer_strike_D1_6_dummy ]_subpop_5= [ FIXED_prefer_strike_D1_6_dummy ]_subpop_4

**** TEST OF INTERACTION BETWEEN GENDER AND D2 (NUCLEAR) and D6 (CONVENTIONAL)
logit FIXED_prefer_strike_D1_6_dummy male_X_d2_vs_d6 d2_vs_d6 male [pweight= expweight]

**** FIGURE 4 AYAYOLLAH DEAL
mean  FIXED_prefer_strike_D1_6_dummy [pweight= expweight] if treatment==11
mean  FIXED_prefer_ground_D1_D6_dummy [pweight= expweight] if treatment==11
mean prefer_strikeD7 prefer_groundD7 prefer_dealD7 [pweight=expweight]
test prefer_strikeD7 = prefer_groundD7
test prefer_strikeD7 = prefer_dealD7
test prefer_groundD7 = prefer_dealD7

gen pref_strikeD2_vs_strikeD7=.
replace pref_strikeD2_vs_strikeD7 =  FIXED_prefer_strike_D1_6_dummy if treatment==11
replace pref_strikeD2_vs_strikeD7 = prefer_strikeD7 if treatment==16
mean  pref_strikeD2_vs_strikeD7 , over(treatment), [pweight= expweight]
test [ pref_strikeD2_vs_strikeD7 ]_subpop_1= [ pref_strikeD2_vs_strikeD7 ]_subpop_2

gen pref_groundD2_vs_groundD7=.
replace pref_groundD2_vs_groundD7 =  FIXED_prefer_ground_D1_D6_dummy if treatment==11
replace pref_groundD2_vs_groundD7 = prefer_groundD7 if treatment==16
mean  pref_groundD2_vs_groundD7 , over(treatment), [pweight= expweight]
test [ pref_groundD2_vs_groundD7 ]_subpop_1= [ pref_groundD2_vs_groundD7 ]_subpop_2

gen pref_strikeD2_vs_dealD7=.
replace pref_strikeD2_vs_dealD7 =  FIXED_prefer_strike_D1_6_dummy if treatment==11
replace pref_strikeD2_vs_dealD7 = prefer_dealD7 if treatment==16
mean  pref_strikeD2_vs_dealD7 , over(treatment), [pweight= expweight]
test [ pref_strikeD2_vs_dealD7 ]_subpop_1= [ pref_strikeD2_vs_dealD7 ]_subpop_2

*** AYAYOLLAH DEAL AND US CREDIBILITY AMONG SUPPORTERS OF STRIKE
mean  deal_credibility_dummy [pweight= expweight] if prefer_strikeD7==1

*** AYAYOLLAH DEAL AND IRANIAN CIVILIAN RESPONSIBILITY AMONG SUPPORTERS OF STRIKE
mean  civilians_responsible_dummy [pweight= expweight] if prefer_strikeD7==1

*** PERCEIVED EFFECTIVENESS OF DEAL AMONG SUPPORTERS OF STRIKE
mean  deal_effective_dummy [pweight= expweight] if prefer_strikeD7==1





